package cn.sharp.bbs.event;

import org.springframework.context.ApplicationEvent;

/**
 * @className: BrowseEvent
 * @description: 浏览帖子
 * @author: 王晓崧
 * @date: 2022/7/9
 **/
public class BrowseEvent extends ApplicationEvent {
    private Long key;

    public BrowseEvent(Object source) {
        super(source);
    }

    public BrowseEvent(Object source, Long key) {
        super(source);
        this.key=key;
    }

    public Long getKey(){
        return key;
    }

}
